<h4 class="grid-h">Stacked to horizontal</h4>
<div class="row show-grid">
  <div class="col-md-1">
    <div>.col-md-1</div>
  </div>
  <div class="col-md-1">
    <div>.col-md-1</div>
  </div>
  <div class="col-md-1">
    <div>.col-md-1</div>
  </div>
  <div class="col-md-1">
    <div>.col-md-1</div>
  </div>
  <div class="col-md-1">
    <div>.col-md-1</div>
  </div>
  <div class="col-md-1">
    <div>.col-md-1</div>
  </div>
  <div class="col-md-1">
    <div>.col-md-1</div>
  </div>
  <div class="col-md-1">
    <div>.col-md-1</div>
  </div>
  <div class="col-md-1">
    <div>.col-md-1</div>
  </div>
  <div class="col-md-1">
    <div>.col-md-1</div>
  </div>
  <div class="col-md-1">
    <div>.col-md-1</div>
  </div>
  <div class="col-md-1">
    <div>.col-md-1</div>
  </div>
</div>
<div class="row show-grid">
  <div class="col-md-8">
    <div>.col-md-8</div>
  </div>
  <div class="col-md-4">
    <div>.col-md-4</div>
  </div>
</div>
<div class="row show-grid">
  <div class="col-md-4">
    <div>.col-md-4</div>
  </div>
  <div class="col-md-4">
    <div>.col-md-4</div>
  </div>
  <div class="col-md-4">
    <div>.col-md-4</div>
  </div>
</div>
<div class="row show-grid">
  <div class="col-md-6">
    <div>.col-md-6</div>
  </div>
  <div class="col-md-6">
    <div>.col-md-6</div>
  </div>
</div>

<h4 class="grid-h">Mobile and desktop</h4>
<div class="row show-grid">
  <div class="col-xs-12 col-md-8">
    <div>xs-12 .col-md-8</div>
  </div>
  <div class="col-xs-6 col-md-4">
    <div>xs-6 .col-md-4</div>
  </div>
</div>
<div class="row show-grid">
  <div class="col-xs-6 col-md-4">
    <div>xs-6 .col-md-4</div>
  </div>
  <div class="col-xs-6 col-md-4">
    <div>xs-6 .col-md-4</div>
  </div>
  <div class="col-xs-6 col-md-4">
    <div>xs-6 .col-md-4</div>
  </div>
</div>
<div class="row show-grid">
  <div class="col-xs-6">
    <div>.col-xs-6</div>
  </div>
  <div class="col-xs-6">
    <div>.col-xs-6</div>
  </div>
</div>

<h4 class="grid-h">Mobile, tablet, desktop</h4>
<div class="row show-grid">
  <div class="col-xs-12 col-sm-6 col-md-8">
    <div>.col-xs-12 .col-sm-6 .col-md-8</div>
  </div>
  <div class="col-xs-6 col-md-4">
    <div>.col-xs-6 .col-md-4</div>
  </div>
</div>
<div class="row show-grid">
  <div class="col-xs-6 col-sm-4">
    <div>.col-xs-6 .col-sm-4</div>
  </div>
  <div class="col-xs-6 col-sm-4">
    <div>.col-xs-6 .col-sm-4</div>
  </div>
  <div class="clearfix visible-xs-block"></div>
  <div class="col-xs-6 col-sm-4">
    <div>.col-xs-6 .col-sm-4</div>
  </div>
</div>

<h4 class="grid-h">Column wrapping</h4>
<div class="row show-grid">
  <div class="col-xs-9">
    <div>.col-xs-9</div>
  </div>
  <div class="col-xs-4">
    <div>.col-xs-4<br>Since 9 + 4 = 13 &gt; 12, this 4-column-wide div gets wrapped onto a new line as one contiguous
      unit.
    </div>
  </div>
  <div class="col-xs-6">
    <div>.col-xs-6<br>Subsequent columns continue along the new line.</div>
  </div>
</div>

<h4 class="grid-h">Responsive column resets</h4>
<div class="row show-grid">
  <div class="col-xs-6 col-sm-3">
    <div>.col-xs-6 .col-sm-3 <p>Resize your viewport or check it out on your phone for an example.</p></div>
  </div>
  <div class="col-xs-6 col-sm-3">
    <div>.col-xs-6 .col-sm-3</div>
  </div>
  <div class="clearfix visible-xs-block"></div>
  <div class="col-xs-6 col-sm-3">
    <div>.col-xs-6 .col-sm-3</div>
  </div>
  <div class="col-xs-6 col-sm-3">
    <div>.col-xs-6 .col-sm-3</div>
  </div>
</div>

<h4 class="grid-h">Offsetting columns</h4>
<div class="row show-grid">
  <div class="col-md-4">
    <div>.col-md-4</div>
  </div>
  <div class="col-md-4 col-md-offset-4">
    <div>.col-md-4 .col-md-offset-4</div>
  </div>
</div>
<div class="row show-grid">
  <div class="col-md-3 col-md-offset-3">
    <div>.col-md-3 .col-md-offset-3</div>
  </div>
  <div class="col-md-3 col-md-offset-3">
    <div>.col-md-3 .col-md-offset-3</div>
  </div>
</div>
<div class="row show-grid">
  <div class="col-md-6 col-md-offset-3">
    <div>.col-md-6 .col-md-offset-3</div>
  </div>
</div>

<h4 class="grid-h">Grid options</h4>
<div class="table-responsive">
<table class="table table-bordered table-striped">
  <thead>
  <tr>
    <th></th>
    <th> Extra small devices
      <small>Phones (&lt;768px)</small>
    </th>
    <th> Small devices
      <small>Tablets (≥768px)</small>
    </th>
    <th> Medium devices
      <small>Desktops (≥992px)</small>
    </th>
    <th> Large devices
      <small>Desktops (≥1200px)</small>
    </th>
  </tr>
  </thead>
  <tbody>
  <tr>
    <th class="text-nowrap" scope="row">Grid behavior</th>
    <td>Horizontal at all times</td>
    <td colspan="3">Collapsed to start, horizontal above breakpoints</td>
  </tr>
  <tr>
    <th class="text-nowrap" scope="row">Container width</th>
    <td>None (auto)</td>
    <td>750px</td>
    <td>970px</td>
    <td>1170px</td>
  </tr>
  <tr>
    <th class="text-nowrap" scope="row">Class prefix</th>
    <td><code>.col-xs-</code></td>
    <td><code>.col-sm-</code></td>
    <td><code>.col-md-</code></td>
    <td><code>.col-lg-</code></td>
  </tr>
  <tr>
    <th class="text-nowrap" scope="row"># of columns</th>
    <td colspan="4">12</td>
  </tr>
  <tr>
    <th class="text-nowrap" scope="row">Column width</th>
    <td class="text-muted">Auto</td>
    <td>~62px</td>
    <td>~81px</td>
    <td>~97px</td>
  </tr>
  <tr>
    <th class="text-nowrap" scope="row">Gutter width</th>
    <td colspan="4">30px (15px on each side of a column)</td>
  </tr>
  <tr>
    <th class="text-nowrap" scope="row">Nestable</th>
    <td colspan="4">Yes</td>
  </tr>
  <tr>
    <th class="text-nowrap" scope="row">Offsets</th>
    <td colspan="4">Yes</td>
  </tr>
  <tr>
    <th class="text-nowrap" scope="row">Column ordering</th>
    <td colspan="4">Yes</td>
  </tr>
  </tbody>
</table>
</div>